.profile-container {
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;

  .profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;

    h2 {
      margin: 0;
      color: #333;
      font-size: 24px;
      font-weight: 600;
    }

    .edit-btn {
      padding: 8px 16px;
      background: #1890ff;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
      transition: background-color 0.3s;

      &:hover {
        background: #40a9ff;
      }
    }
  }

  .profile-content {
    display: flex;
    gap: 32px;

    .avatar-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 150px;

      .avatar {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: 16px;
        border: 3px solid #f0f0f0;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .avatar-placeholder {
          width: 100%;
          height: 100%;
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          display: flex;
          align-items: center;
          justify-content: center;
          color: white;
          font-size: 48px;
          font-weight: bold;
        }
      }

      .upload-btn {
        padding: 6px 12px;
        background: #f5f5f5;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        color: #666;
        transition: all 0.3s;

        &:hover {
          background: #e6f7ff;
          border-color: #1890ff;
          color: #1890ff;
        }
      }
    }

    .info-section {
      flex: 1;

      .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 32px;
        margin-bottom: 32px;

        .info-item {
          display: flex;
          flex-direction: column;
          gap: 8px;

          label {
            font-weight: 500;
            color: #666;
            font-size: 14px;
          }

          span {
            color: #333;
            font-size: 16px;
            padding: 8px 0;
          }

          input {
            padding: 8px 12px;
            border: 1px solid #d9d9d9;
            border-radius: 4px;
            font-size: 16px;
            transition: border-color 0.3s;

            &:focus {
              outline: none;
              border-color: #1890ff;
              box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
            }
          }
        }
      }

      .action-buttons {
        display: flex;
        gap: 12px;
        justify-content: flex-end;

        button {
          padding: 10px 20px;
          border: none;
          border-radius: 4px;
          cursor: pointer;
          font-size: 14px;
          font-weight: 500;
          transition: all 0.3s;

          &.save-btn {
            background: #52c41a;
            color: white;

            &:hover {
              background: #73d13d;
            }
          }

          &.cancel-btn {
            background: #f5f5f5;
            color: #666;
            border: 1px solid #d9d9d9;

            &:hover {
              background: #fff;
              border-color: #40a9ff;
              color: #40a9ff;
            }
          }
        }
      }
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .profile-container {
    padding: 16px;
    margin: 16px;

    .profile-content {
      flex-direction: column;
      gap: 24px;

      .avatar-section {
        align-self: center;
      }

      .info-section {
        .info-grid {
          grid-template-columns: 1fr;
          gap: 20px;
        }
      }
    }
  }
}